// 系统状态相关类型
export interface SystemStatus {
  app_initialized: boolean
  agent_ready: boolean
  session_active: boolean
  api_key_configured: boolean
  server_info: {
    environment: string
    python_version: string
    fastapi_version: string
  }
}

// 登录相关类型
export interface LoginCredentials {
  username: string
  password: string
}

export interface LoginResponse {
  success: boolean
  message: string
  session_active: boolean
  user_info?: {
    username: string
    login_time: string
  }
}

// 查询相关类型
export interface QueryRequest {
  message: string
  session_id?: string
}

export interface QueryResponse {
  success: boolean
  response: string
  session_id?: string
  error?: string
  timestamp?: string
}

// 消息相关类型
export interface ChatMessage {
  id: string
  type: 'user' | 'assistant' | 'system'
  content: string
  timestamp: Date
  loading?: boolean
}

// API响应基础类型
export interface ApiResponse<T = any> {
  success: boolean
  data?: T
  message?: string
  error?: string
  timestamp?: string
}